package com.zy.drug.mapper;


import com.zy.drug.pojo.DrugInfo;
import com.zy.drug.pojo.DrugInfoExcelVo;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
* @author Administrator
* @description 针对表【t_drug_info】的数据库操作Mapper
* @createDate 2025-03-23 15:41:39
* @Entity com.zy.drug.pojo.TDrugInfo
*/
public interface DrugInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(DrugInfo record);


    DrugInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DrugInfo record);

    int updateByPrimaryKey(DrugInfo record);

    int saveBatch(ArrayList list);

    List<DrugInfo> selectByCondition(@Param("pinyin") String pinyin, @Param("drugName") String drugName);

    void saveBatchVo(List<DrugInfoExcelVo> cachedDataList);
}
